package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-04-13
 */
public class Budget extends Model<Budget> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * false-正常 true-作废
     */
    private Boolean close;

    /**
     * 1收入 2支出
     */
    private Integer type;

    /**
     * 单据编号
     */
    private String no;

    /**
     * 业务日期
     */
    private Date date;

    /**
     * 收支项目id
     */
    private String budgetProjectId;

    /**
     * 金额
     */
    private BigDecimal amt;

    /**
     * 结算账户id
     */
    private String settAccountId;

    /**
     * 用户id（经办人）
     */
    private String userId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 图片
     */
    private String image;

    private Date time;

    /**
     * 所属门店
     */
    private String storeId;

    /**
     * 1-无 2-客户 3-供应商
     */
    private Integer unitType;

    /**
     * 单位:客户或供应商或无
     */
    private String unit;

    /**
     * 制单人
     */
    private String makeUserId;

    /**
     * 制单时间
     */
    private Date makeTime;

    /**
     * 所属公司
     */
    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Boolean getClose() {
        return close;
    }

    public void setClose(Boolean close) {
        this.close = close;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
    public String getBudgetProjectId() {
        return budgetProjectId;
    }

    public void setBudgetProjectId(String budgetProjectId) {
        this.budgetProjectId = budgetProjectId;
    }
    public BigDecimal getAmt() {
        return amt;
    }

    public void setAmt(BigDecimal amt) {
        this.amt = amt;
    }
    public String getSettAccountId() {
        return settAccountId;
    }

    public void setSettAccountId(String settAccountId) {
        this.settAccountId = settAccountId;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }
    public Integer getUnitType() {
        return unitType;
    }

    public void setUnitType(Integer unitType) {
        this.unitType = unitType;
    }
    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
    public String getMakeUserId() {
        return makeUserId;
    }

    public void setMakeUserId(String makeUserId) {
        this.makeUserId = makeUserId;
    }
    public Date getMakeTime() {
        return makeTime;
    }

    public void setMakeTime(Date makeTime) {
        this.makeTime = makeTime;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Budget{" +
            "id=" + id +
            ", close=" + close +
            ", type=" + type +
            ", no=" + no +
            ", date=" + date +
            ", budgetProjectId=" + budgetProjectId +
            ", amt=" + amt +
            ", settAccountId=" + settAccountId +
            ", userId=" + userId +
            ", remark=" + remark +
            ", image=" + image +
            ", time=" + time +
            ", storeId=" + storeId +
            ", unitType=" + unitType +
            ", unit=" + unit +
            ", makeUserId=" + makeUserId +
            ", makeTime=" + makeTime +
            ", companyId=" + companyId +
        "}";
    }
}
